package com.lee.study.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by alex on 14-4-1.
 */
@Controller
public class SampleController {

    @RequestMapping("home")
    public String loadHomePage(Model m){
        m.addAttribute("name","xuweidasda");
        return "home";
    }
}
